import request from '@/utils/request'

export function showNoticeList(query) {
  return request({
    url: '/notice/show',
    method: 'get',
    params: query
  })
}

export function deleteNotice(noticeId) {
  return request({
    url: '/notice/remove',
    method: 'get',
    params: { 'noticeId': noticeId }
  })
}

export function sendNotice(data) {
  return request({
    url: '/notice/send',
    method: 'post',
    data
  })
}

export function getNotice(noticeId) {
  return request({
    url: '/notice/get',
    method: 'get',
    params: { 'noticeId': noticeId }
  })
}
